<template>
  <button
    :class="{
      btn: true,
      dashboardBtn: dashboard,
    }"
  >
    <slot></slot>
  </button>
</template>

<script setup>
const props = defineProps({
  dashboard: {
    type: Boolean,
    default: false,
  },
  defaultBtn: {
    type: Boolean,
    default: false,
  },
});
</script>

<style scoped lang="scss">
%commonBtn {
  width: 100%;
  height: 28px;
  border-radius: 4px;
  font-size: var(--default13px);
  cursor: pointer;
  transition: opacity 0.3s;
  padding: 0px 10px 0px 10px;
}
.btn {
  background: var(--main-color);
  color: white;
  border: none;

  @extend %commonBtn;
  &:hover {
    opacity: 0.9;
  }
}
.dashboardBtn {
  color: var(--main-color);
  font-size: var(--default13px);
  @extend %commonBtn;
  border: 1px solid var(--main-color);
  background-color: transparent;
}
</style>
